package model.posterminal;

import java.util.List;

public class PosterminalProducerDAO {

	private final static PosterminalProducer producer = new PosterminalProducer();
	
	public List<PosterminalProducer> returnAllPosterminalProducer() throws Exception {
		return producer.getAllProducerList();
	}
	
	public PosterminalProducer find(Long id) throws Exception {
		for (PosterminalProducer producer : returnAllPosterminalProducer()) {
			if (producer.getId() == id) {
				return producer;
			}
		}
		return null;
	}
}
